﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DA;

namespace BL
{
    public class DanhMucPhong_BL
    {
        DanhMucPhong_DA KD = new DanhMucPhong_DA();
        public List<DanhMucPhong> TimPhongTheoMa(string key)
        {
            return KD.TimKiemPhongTheoMa(key);
        }
        //public List<DanhMucPhong> TimKHTheoTen(string key)
        //{
        //    return KD.TimKiemPhongTheoTen(key);
        //}
        public List<DanhMucPhong> LayAllDMPhong()
        {
            return KD.LayDSPhong();
        }
        public bool Them1Phong(DanhMucPhong N)
        {
            return KD.ThemPhong(N);
        }
        public bool Sua1Phong(DanhMucPhong N)
        {
            return KD.SuaPhong(N);
        }
        public bool Xoa1Phong(string MaKH)
        {
            return KD.XoaPhong(MaKH);
        }
        public double LayDongiaPhongTheoMa(string ma)
        {
            return KD.LayDongiaPhongTheoMa(ma);
        }
    }
}
